<?php /* Smarty version 2.6.13, created on 2006-11-26 20:17:21
         compiled from file:C:%5Cdev%5Cxampp%5Chtdocs%5Cprojects%5Cbaj2%5Csrc%5Cinclude%5Cplugins%5Corders/tpl/salesreportinglist.tpl.php */ ?>
<div><?php echo $this->_tpl_vars['title']; ?>
</div>
<?php echo '
<script language="javascript" type="text/javascript" src="/js/datetimepicker.js"></script>
<script language=javascript>
<!--
        function popUp(url)
        {
                        var w = window.open(url,\'popupWindow\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=810,height=510,screenX=\'+(window.width)+\',screenY=\'+(window.height)+\',top=\'+(screen.height/4)+\',left=\'+(screen.width/4));
        }
        
-->
</script>

'; ?>

<br/>
<?php if (! isne ( $this->_tpl_vars['visible_print'] )): ?>
<div>
<form method="POST" action="<?php echo $this->_tpl_vars['url']; ?>
">
<input type="hidden" name="action" value="doApplyDates" />
<table>
        <tr>
                <td>
                        Start Date:&nbsp;<input type="Text" id="startDate" name="startDate" maxlength="25" size="25" style="width:115px;" value="<?php echo $this->_tpl_vars['start_date']; ?>
"/>
                        <a href="javascript:NewCal('startDate','ddmmmyyyy',true,24)"><img src="/img/cal.gif" width="16" height="16" border="0" alt="Pick a date"></a>
                </td>
                <td>
                        End Date:&nbsp;<input type="Text" id="endDate" name="endDate" maxlength="25" size="25" style="width:115px;" value="<?php echo $this->_tpl_vars['end_date']; ?>
"/>
                        <a href="javascript:NewCal('endDate','ddmmmyyyy',true,24)"><img src="/img/cal.gif" width="16" height="16" border="0" alt="Pick a date"></a>
                </td>
                <td>
                        <input type="submit" value="Apply dates" class="button"/>
                </td>
                
        </tr>
</table>
</form>
</div>
<?php endif; ?>
<div>
<br/>
<?php echo $this->_tpl_vars['productlist1']; ?>

<div> 
        <table>
                <tr class="light">
                <?php if (isne ( $this->_tpl_vars['start_date'] )): ?><td>From: <?php echo $this->_tpl_vars['start_date']; ?>
</td><?php endif;  if (isne ( $this->_tpl_vars['end_date'] )): ?><td>To: <?php echo $this->_tpl_vars['end_date']; ?>
</td><?php endif; ?><td>Total items: <?php if ($this->_tpl_vars['total_items'] > 0):  echo $this->_tpl_vars['total_items'];  else: ?>0<?php endif; ?></td><td>Total price: $<?php if ($this->_tpl_vars['total_price'] > 0):  echo $this->_tpl_vars['total_price'];  else: ?>0<?php endif; ?></td>
                </tr>
        </table>
</div>
<br/>
<?php if (! isne ( $this->_tpl_vars['visible_print'] )): ?>
<div>
<input type='button' value='Print' class="button" onclick="popUp('<?php echo $this->_tpl_vars['print_url']; ?>
')"/>
</div>
<?php endif; ?>
